package com.feicheng.iou.service.impl;

import com.feicheng.iou.entity.Contract;
import com.feicheng.iou.mapper.ContractMapper;
import com.feicheng.iou.result.ResultInfoV110;
import com.feicheng.iou.service.ContractService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author tianchunlei
 * @since 2021-06-28
 */
@Service
public class ContractServiceImpl extends ServiceImpl<ContractMapper, Contract> implements ContractService {

    @Autowired
    ContractMapper contractMapper;

    /**
     * @Author luoxin
     * @Description 根据Id查询协议具体信息
     * @Date 11:42 上午 2021/8/27
     * @param null
     * @return
     */
    @Override
    public ResultInfoV110 selectInfo(Integer id) {
        Contract contract = contractMapper.selectById(id);
        return ResultInfoV110.success(contract);
    }
}
